<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of deals
 *
 * @author Костя
 */
class Deal extends CI_Controller {

    function index() {
        $this->output->enable_profiler(TRUE);
        if($this->session->userdata('logged_in') === true){
            echo 1111;
        }
        $data['user'] = print_r($this->session->userdata('logged_in'),1);
        $this->load->view('deals', $data);
    }

    function deals_by_city($city) {
        $this->output->enable_profiler(TRUE);
        echo $city;
    }

    function deal_inner($city, $deal_id) {
        //$this->output->enable_profiler(TRUE);
        echo $city . '++' . $deal_id;
    }

}

?>
